<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="__ROOT__" />
<link rel="stylesheet" type="text/css" href="__RES__images/metinfo.css" />
<script type="text/javascript" src="__RES__ckeditor/ckeditor.js"></script>
<link rel="stylesheet" href="__RES__kindeditor/themes/default/default.css" />
<script charset="utf-8" src="__RES__kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="__RES__kindeditor/lang/zh_CN.js"></script>
<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="content"]', {
					allowFileManager : true
				});
				
			});
</script>
<script charset="utf-8" src="__RES__js/jQuery1.7.2.js"></script>


<link rel="stylesheet" type="text/css" href="__RES__css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="__RES__css/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css" href="__RES__css/style.css" />
<style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


</style>
</head>

<body>

	<div class="metinfotop">
	<div class="position">简体中文：属性管理 > <a href="javascript:void(0)">{$lang}属性</a></div>

	</div>
	<div class="clear"></div>


<div class="stat_list">
	<ul>
		<li class="now"><a href="index.php/admin/attribute/save/catid/{$catid}" title="{$lang}属性">{$lang}属性</a></li>
		<li><a href="index.php/admin/attribute/list/catid/{$catid}" title="属性列表">属性列表</a></li>
	</ul>
</div>
<form method="post" name="myform" action="index.php/admin/attribute/save/catid/{$catid}/id/{$one.attid}" target="_self" enctype="multipart/form-data">
<table class="table table-bordered table-hover definewidth m10">
    <tr>
        <td width="10%" class="tableleft">属性名称</td>
        <td><input type="text" id="name" name="name" value="{$one.name}"/><span></span></td>
    </tr>
    
    <tr>
        <td width="10%" class="tableleft">所属分类</td>
        <td><select name="catid">
        	<option value="0">请选择分类</option>
            <foreach name="category" item="vo" >
            	<option value="{$vo.catid}" <if condition=" $vo.catid eq $catid ">  selected="selected" </if> >{$vo.name}</option>
            </foreach>
        </select><span></span>
        </td>
    </tr>
     
   <tr>
        <td class="tableleft">属性类型</td>
        <td>
            <input type="radio" id="type" name="type" value="0" <if condition="$one['type'] eq 0">  checked="checked" </if> /> 固定
            <input type="radio" id="type" name="type" value="1" <if condition="$one['type'] eq 1">  checked="checked" </if> /> 单选
            <input type="radio" id="type" name="type" value="2" <if condition="$one['type'] eq 2">  checked="checked" </if> /> 多选
        </td>
    </tr>

    <tr>
        <td class="tableleft"></td>
        <td>
            <button type="submit" class="btn btn-primary" >保存</button> &nbsp;&nbsp;<button type="submit" class="btn btn-success" name="backid" id="backid">返回列表</button>
        </td>
    </tr>
</table>
</form>

</body>
</html>
<script>
    $(function () {       
		$('#backid').click(function(){
				window.location.href="index.php/admin/attribute/list";
		 });

    });
</script>